First, ensure a license is activated (see License Activation).
Standard licensing is used if .NET Framework licensing is not (see .NET Framework Runtime Licensing). If you are transitioning a project away from using the legacy licenses.licx technique but targeting Dart .NET Framework assemblies, the licenses.licx file should be removed from the project or Dart component entries removed from the licenses.licx file. If you are upgrading from a previous version, you will need to remove existing references to License.Set() from your code or update them as described in step 4 below.
To generate a runtime license for your application:
- With an activated license present, run your application so that a licensed component’s constructor is called (or call Dart.Ssh.License.Create() when your application starts).
- The runtime license is created and saved to Dart.Ssh.lic beside Dart.Ssh.dll in the output directory. The runtime license is bound to the application’s assembly name and should be distributed with your application.
- If Dart.Ssh.License.Create() was used, remove it from your code.
- If distributing Dart.Ssh.lic is undesirable (when using a build server, for example, or to minimize the size of your distribution), then a runtime license string can be used instead:
- Use any text editor to open the Dart.Ssh.lic file located in the output directory.
- Copy the runtime license string from the first line.
- In your application's code, paste the runtime license string in between the quotes of License.Set, as follows:
Dart.Ssh.License.Set("RuntimeLicenseString");
If desired, you can create a runtime license for your intermediate assembly so it can be used in any application:
- Obtain an Extended Distribution Product Key from Dart and activate it. (Purchase may be required.)
- Follow the steps above, using Dart.Ssh.License.Create() in step 1.